using System;
using LS.UnityExtensions;

namespace LS.Digitize
{
    public class Member
    {
        public string name;
        public Type type;
        public bool isProperty;
        public LSReflection.ReflectedMember reflectedMember;
        public bool useReflection = false;

        public Member(string name, Type type, bool isProperty)
        {
            this.name = name;
            this.type = type;
            this.isProperty = isProperty;
        }

        public Member(LSReflection.ReflectedMember reflectedMember)
        {
            this.reflectedMember = reflectedMember;
            this.name = reflectedMember.Name;
            this.type = reflectedMember.MemberType;
            this.isProperty = reflectedMember.isProperty;
            this.useReflection = true;
            
        }
    }
}